﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true" CodeBehind="Feedback.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Contact.Feedback" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            Menus.DisplaySubMenu('menu-6-2');
            Menus.ChangeSelectedMenu('menu-6-2');
        });
    </script>    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="float: left; width: 100%;">
                <div id="iconArticle" class="icon32">
                    <br />
                </div>
                <h2>
                    Thông tin phản hồi</h2>
            </div>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    <div class="lblLoading">
                        Loading...</div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <div class="form-wrap" style="float: left; width: 98%; margin-right: 20px;">
                <select name="selectedAction0">
                    <option value="0">-- Chọn --</option>
                    <option value="1">-- Xem chi tiết</option>
                    <option value="4">-- Xóa</option>
                </select>
                <asp:Button ID="btnApply" CssClass="button" runat="server" Width="60" Text="Áp dụng"
                    OnClick="BtnApplyClick" />&nbsp;&nbsp;
                <asp:GridView ID="grdListArticle" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" DataKeyNames="ContactId" PageSize="15" EmptyDataText="Không có bài viết nào"
                    CssClass="ze-section-grid" Style="border-collapse: separate;" border="0" OnPageIndexChanging="GrdListArticlePageIndexChanging">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="STT">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %>
                            </ItemTemplate>
                        </asp:TemplateField>                        
                        <asp:TemplateField ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="&lt;input type=&quot;checkbox&quot; name=&quot;cboCheck&quot; onfocus=&quot;this.blur();&quot; id=&quot;check_all&quot; />">
                            <ItemTemplate>
                                <input type="checkbox" onfocus="this.blur();" name="cboCheckArticle" class="checkbox" value="<%#Eval("ContactId")%>" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Họ và tên" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <%#Eval("ContactName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <%#DisplayTitle(Eval("ContactEmail").ToString(), 20)%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tiêu đề" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <div onmouseover="javascript:Util.DisplayPostAction('PostAction_<%#Eval("ContactId")%>');"
                                    onmouseout="javascript:Util.HidePostAction('PostAction_<%#Eval("ContactId")%>');"
                                    style="height: 32px;">
                                    <a class="lnkArticle" id="lnkArticle_<%#Eval("ContactId")%>" href="FeedbackUpdate.aspx?ID=<%#Eval("ContactId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>">
                                        <%#DisplayTitle(Eval("Title").ToString(), 20)%></a>
                                    <div class="PostAction" style="display: none;" id="PostAction_<%#Eval("ContactId")%>">
                                        <a href="FeedbackUpdate.aspx?ID=<%#Eval("ContactId")%>&ReUrl=<%=Server.UrlEncode(Request.RawUrl) %>"
                                            title="Edit this Post">Xem chi tiết</a></div>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nội dung" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <%#DisplayTitle(Eval("ContactBody").ToString(), 100)%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ngày gửi" ItemStyle-Width="15%">
                            <ItemTemplate>
                                <%#DisplayStatusDate(Eval("CreateDate").ToString())%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="header" />
                    <PagerSettings Mode="NumericFirstLast" />
                    <PagerStyle CssClass="footer" />
                </asp:GridView>
                <select name="selectedAction1">
                    <option value="0">-- Chọn --</option>
                    <option value="1">-- Sửa</option>
                    <option value="4">-- Chờ duyệt</option>
                </select>
                <asp:Button ID="btnApply2" CssClass="button" runat="server" Width="60" Text="Áp dụng"
                    OnClick="BtnApply2Click" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>    
</asp:Content>
